<extend name="_layout/main" />
<block name="content">
	<div class="page-content">
		<!-- Page Breadcrumb -->
		<div class="page-breadcrumbs">
			<ul class="breadcrumb">
				<li>
					<i class="fa fa-home"></i>
					<a href="{:U('dashboard/index')}">系统首页</a>
				</li>
				<li>
					<a href="{:U('user/index')}">会员管理</a>
				</li>
				<li class="active">会员详情</li>
			</ul>
		</div>
		<!-- /Page Breadcrumb -->
		
		<!-- Page Body -->
		<div class="page-body">
			<div class="row">
				<div class="col-xs-12 col-md-12">
					<div class="tabbable">
						<ul class="nav nav-tabs" id="myTab">
							<li class="tab-red">
								<a href="{:U('user/detail',['id'=>$id])}" aria-expanded="true">
                                                		基本信息
                                                </a>
							</li>

							<li class="active">
								<a  href="{:U('user/invite',['id'=>$id])}" aria-expanded="false">
                                                	推广会员
                                                </a>
							</li>

							<li class="tab-red">
								<a href="{:U('user/account',['id'=>$id])}" aria-expanded="false">
                                            	账户日志
                                            </a>
							</li>

						</ul>

						<div class="tab-content">

							<table class="table table-hover">
								<thead class=" ">
									<tr>
										<th class="text-center">用户</th>
										<th>身份</th>
										<th>状态</th>
										<th>注册时间</th>
										<th>激活时间</th>
										<th></th>
									</tr>
								</thead>

								<tbody>
									<notempty name="result">
										<volist name="result" id="val" mod="2">
											<tr>
												<td class="text-center">{$val.nickname}</td>
												<td>{:userIdentity($val['identity'])}</td>
												<td>{$val['status'] == 'ACTIVE' ? '正常':'锁定'}</td>
												<td class="center">{$val.reg_time|format_time}</td>
												<td class="center">{$val.activate_time|format_time}</td>
											</tr>
										</volist>
										<else/>
										<tr>
											<td colspan="5" align="center">没有下级会员</td>
										</tr>
									</notempty>
								</tbody>
							</table>
                                <div class="row DTTTFooter">
								<div class="col-sm-6">
									<div class="dataTables_info" id="simpledatatable_info" role="status" aria-live="polite">

									</div>
								</div>
								<div class="col-sm-6">
									<div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
										{$page}
									</div>
								</div>
							</div>
							</div>
					</div>
					

				</div>
			</div>

		</div>
		<!-- /Page Body -->
	</div>

</block>